<?php
namespace Home\Controller;
use Common\Controller\HomeBaseController;
/**
 * 商城首页Controller
 */
class MateController extends HomeBaseController{

	/**
	 * 首页
	 */
	public function index(){

		$data = D('Mate')->index();

		if($data['code'] == 200){
			$this->assign($data);
			$this->display();
		}else{
			$this->error($data['msg']);
		}

	}

	/**
	 * 提交订单
	 */
	public function Ajaxform(){

		$data = D('Mate')->Ajaxform();

		$this->ajaxReturn($data);

	}


}

